{if isset($smarty.session.user) && $smarty.get.option neq 'logout'}
    <table cellspacing="0"><tr><td align="center">
                <div class="well well-small">
                    <b>Welcome {$smarty.session.user.name}</b><br /><br /><img src="{$gvar.l_global}images/admin/admin.png" /><br /><br />
                    <button class="btn" onClick="location.href = '{$gvar.l_index}?option=logout'">{$gvar.n_logout}</button>
                </div>
            </td></tr></table>
        {else}   
    <table cellspacing="0" cellpadding="0"><tr><td class="font-white" align="center">
                <form class="well well-small form-search" action="{$gvar.l_index}?option=login" method="post" name="login">
                    <b><a name="login">{$gvar.n_login}</a></b><br /><br />
                    <input name="user" type="text" class="input-medium" placeholder="User"><br /><br />
                    <input name="password" type="password" class="input-medium" placeholder="Password"><br /><br />
                    <button type="submit" class="btn">Go</button>
                </form>
            </td></tr></table>
        {/if}


<table cellspacing="0" cellpadding="0">
    <tr>
        <td>
            <h4>Menu</h4>
            <div class="well well-small" style="padding: 8px 0;">
                <ul class="nav nav-list">
                    <li class="nav-header">Principal List</li>
                    <li {if $active eq {$gvar.n_index}}class="active"{/if}><a href="{$gvar.l_index}">{$gvar.n_index}</a></li>
                    <li {if $active eq {$gvar.n_registrar_categoria}}class="active"{/if}><a href="{$gvar.l_registrar_categoria}">{$gvar.n_registrar_categoria}</a></li>
                    <li {if $active eq {$gvar.n_registrar_producto}}class="active"{/if}><a href="{$gvar.l_registrar_producto}">{$gvar.n_registrar_producto}</a></li>
                    <li {if $active eq {$gvar.n_consultar_producto}}class="active"{/if}><a href="{$gvar.l_consultar_producto}">{$gvar.n_consultar_producto}</a></li>
                    <li {if $active eq {$gvar.n_publicar_noticia}}class="active"{/if}><a href="{$gvar.l_publicar_noticia}">{$gvar.n_publicar_noticia}</a></li>
                    <li {if $active eq {$gvar.n_consultar_noticia}}class="active"{/if}><a href="{$gvar.l_consultar_noticia}">{$gvar.n_consultar_noticia}</a></li>
                    <li {if $active eq {$gvar.n_contact}}class="active"{/if}><a href="{$gvar.l_contact}">{$gvar.n_contact}</a></li>
                </ul>
            </div>
        </td>
    </tr>
</table>